export const limits: {
  [k in any]: any
} = {
  user: {
    list: {
      add: "add",
      edit: "edit",
      delete: "delete",
      reset_password: "reset_password",
      change_status: "change_status",
      bind_role: "bind_role"
    },
    role: {
      add: "add",
      edit: "edit",
      delete: "delete",
      bind_menu: "bind_menu",
      bind_user: "bind_user"
    }
  }
}


export const getLimitsToList = (firstKey: any, lastKey: any) => {
  const pageLimit = limits[firstKey][lastKey]

  const values = Object.values(pageLimit);

  return values ?? []
}
